import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'LoginView',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/MainView',
      name: 'MainView',
      component: () => import('../views/MainView.vue'),
      children:[
        {
          path: '/ProductView',
          name: 'ProductView',
          component: () => 
          import('../views/Product/ProductView.vue'),
        },
        {
          path: '/BreeView',
          name: 'BreeView',
          component: () => import('../views/Product/BreeView.vue'),
        },
      ]
    },
  ]
})

export default router
